|
| | Quaternion () |
| |
| | Quaternion (float x, float y, float z, float w) |
| |
| | Quaternion (const Vector &axis, float angle) |
| |
| | Quaternion (const Vector &eulerAngles) |
| |
| | Quaternion (const Matrix &mat) |
| |
| | Quaternion (const Quaternion &other) |
| |
| | ~Quaternion () |
| |
| Vector | getAsEulerAngles () const |
| |
| void | setFromAxisAngle (const Vector &axis, float angle) |
| |
| void | setFromEuler (const Vector &angles) |
| |
| void | setFromMatrix (const Matrix &mat) |
| |
| Vector | transform (const Vector &vector) const |
| |
| Quaternion & | operator= (const Quaternion &other) |
| |
| Quaternion | operator* (const Quaternion &other) const |
| |
| void | operator*= (const Quaternion &other) |
| |
| | Vector () |
| |
| | Vector (float x, float y) |
| |
| | Vector (float x, float y, float z) |
| |
| | Vector (float x, float y, float z, float w) |
| |
| | Vector (const Vector &other) |
| |
| | Vector (const IntVector &other) |
| |
| | ~Vector () |
| |
| float | getX () const |
| |
| float | getY () const |
| |
| float | getZ () const |
| |
| float | getW () const |
| |
| void | setX (float value) |
| |
| void | setY (float value) |
| |
| void | setZ (float value) |
| |
| void | setW (float value) |
| |
| void | addX (float value) |
| |
| void | addY (float value) |
| |
| void | addZ (float value) |
| |
| void | addW (float value) |
| |
| void | multX (float value) |
| |
| void | multY (float value) |
| |
| void | multZ (float value) |
| |
| void | multW (float value) |
| |
| float | getLengthVec2 () const |
| |
| float | getLengthVec3 () const |
| |
| float | getLengthVec4 () const |
| |
| float | getLengthSquaredVec2 () const |
| |
| float | getLengthSquaredVec3 () const |
| |
| float | getLengthSquaredVec4 () const |
| |
| float | getDistanceVec2 (const Vector &other) const |
| |
| float | getDistanceVec3 (const Vector &other) const |
| |
| float | getDistanceVec4 (const Vector &other) const |
| |
| float | getDistanceSquaredVec2 (const Vector &other) const |
| |
| float | getDistanceSquaredVec3 (const Vector &other) const |
| |
| float | getDistanceSquaredVec4 (const Vector &other) const |
| |
| void | normalizeVec2 () |
| |
| void | normalizeVec3 () |
| |
| void | normalizeVec4 () |
| |
| Vector | getNormalizedVec2 () const |
| |
| Vector | getNormalizedVec3 () const |
| |
| Vector | getNormalizedVec4 () const |
| |
| float | dotProductVec2 (const Vector &other) const |
| |
| float | dotProductVec3 (const Vector &other) const |
| |
| float | dotProductVec4 (const Vector &other) const |
| |
| void | setAsCrossVec3 (const Vector &other) |
| |
| Vector | getCrossVec3 (const Vector &other) const |
| |
| void | fromString (const nkMemory::StringView &str) |
| |
| Vector & | operator= (const Vector &other) |
| |
| Vector & | operator= (const IntVector &other) |
| |
| Vector | operator+ (const Vector &other) const |
| |
| void | operator+= (const Vector &other) |
| |
| Vector | operator- (const Vector &other) const |
| |
| void | operator-= (const Vector &other) |
| |
| Vector | operator* (const Vector &other) const |
| |
| void | operator*= (const Vector &other) |
| |
| Vector | operator* (const Quaternion &other) const |
| |
| void | operator*= (const Quaternion &other) |
| |
| Vector | operator* (const Matrix &mat) const |
| |
| void | operator*= (const Matrix &other) |
| |
| Vector | operator* (float coeff) const |
| |
| void | operator*= (float coeff) |
| |
| Vector | operator/ (const Vector &other) const |
| |
| void | operator/= (const Vector &other) |
| |
| Vector | operator/ (float coeff) const |
| |
| void | operator/= (float coeff) |
| |
| bool | operator== (const Vector &other) const |
| |
| bool | operator!= (const Vector &other) const |
| |
| bool | operator< (const Vector &other) const |
| |
| bool | operator<= (const Vector &other) const |
| |
| bool | operator> (const Vector &other) const |
| |
| bool | operator>= (const Vector &other) const |
| |
|
| static float | distanceVec2 (const Vector &a, const Vector &b) |
| |
| static float | distanceVec3 (const Vector &a, const Vector &b) |
| |
| static float | distanceVec4 (const Vector &a, const Vector &b) |
| |
| static float | distanceSquaredVec2 (const Vector &a, const Vector &b) |
| |
| static float | distanceSquaredVec3 (const Vector &a, const Vector &b) |
| |
| static float | distanceSquaredVec4 (const Vector &a, const Vector &b) |
| |
| static float | dotVec2 (const Vector &a, const Vector &b) |
| |
| static float | dotVec3 (const Vector &a, const Vector &b) |
| |
| static float | dotVec4 (const Vector &a, const Vector &b) |
| |
| static Vector | crossVec3 (const Vector &a, const Vector &b) |
| |
|
union { |
|
float _x |
| |
|
float _r |
| |
|
float x |
| |
|
float r |
| |
| }; | |
| | X or R component of the vector, accessible through different names.
|
| |
|
union { |
|
float _y |
| |
|
float _g |
| |
|
float y |
| |
|
float g |
| |
| }; | |
| | Y or G component of the vector, accessible through different names.
|
| |
|
union { |
|
float _z |
| |
|
float _g |
| |
|
float z |
| |
|
float g |
| |
| }; | |
| | Z or B component of the vector, accessible through different names.
|
| |
|
union { |
|
float _w |
| |
|
float _a |
| |
|
float w |
| |
|
float a |
| |
| }; | |
| | W or A component of the vector, accessible through different names.
|
| |
A quaternion, symbolizing rotations as a 4D vector.
The equation for the quaternion is considered as : xi + yj + zk + w